package cn.tedu._02notice.base.config;

import io.swagger.v3.oas.models.tags.Tag;
import io.swagger.v3.oas.models.OpenAPI;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Arrays;
import java.util.List;
@Configuration
class Knife4jConfig {
    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
                .tags(getTagsOrdered());
    }

    public List<Tag> getTagsOrdered() {
        return Arrays.asList(
                new Tag().name("01-通知管理模块").description("通知管理相关接口"),
                new Tag().name("02-用户管理模块").description("用户管理相关接口")
        );
    }
}